LANGS = {
    'zh': {
        'menu_file': '文件管理',
        'menu_chunk': '分块管理',
        'menu_dataset': '数据导出',
        'menu_settings': '系统设置',
        'file_manage': '文件管理',
        'upload': '上传文件',
        'filename': '文件名',
        'status': '状态',
        'upload_time': '上传时间',
        'action': '操作',
        'split': '分块',
        'view': '查看',
        'delete': '删除',
        'no_data': '暂无数据',
        'status_pending': '待处理',
        'status_chunked': '已分块',
        'status_done': '已完成',
        'delete_confirm': '确定要删除该文件吗？',
        'delete_success': '删除成功',
        'delete_fail': '删除失败',
        'delete_chunk_confirm': '确定要删除该分块吗？',
        'delete_chunk_success': '分块删除成功',
        'delete_chunk_fail': '分块删除失败',
        'confirm': '确定',
        'cancel': '取消',
        'alert_title': '提示',
        'upload_success': '上传成功',
        'upload_fail': '上传失败',
        # 分块策略弹窗相关
        'split_strategy_title': '智能分块策略',
        'split_method': '分块方式：',
        'split_method_auto': '智能递归分层（推荐）',
        'split_method_heading': '按标题分块',
        'split_method_paragraph': '按段落分块',
        'split_method_table': '按表格单元分块',
        'block_size': '每个文本块的最大字符数 (100-5000)：',
        'overlap': '重叠率(%)：',
        'start_split': '开始分块',
        'splitting': '分块中...',
        'progress': '进度：',
        'split_done': '分块完成！',
        'split_fail': '分块失败',
        # 分块管理页面相关
        'chunk_manage': '分块管理',
        'chunk_content': '分块内容',
        'qa_count': '条问答',
        'loading': '加载中...',
        'batch_delete': '批量删除',
        'delete_selected': '删除选中',
        'delete_selected_confirm': '确定要删除选中的分块吗？',
        'delete_selected_success': '删除成功',
        'delete_selected_fail': '删除失败',
        
        # 数据导出页面相关
        'dataset_manage': '数据导出',
        'batch_export': '批量导出',
        'file_name': '文件名',
        'qa_pairs': '问答对数量',
        'create_time': '创建时间',
        'export_params': '导出参数',
        'export_format': '导出格式',
        'export_type': '导出类型',
        'export_confirm': '确认导出',
        'export_cancel': '取消',
        'export_success': '导出成功',
        'export_fail': '导出失败',
        'export_score': '导出星级',
        'all': '全部',
        
        # 系统设置页面相关
        'settings_manage': '系统设置',
        'language': '语言',
        'theme': '主题',
        'save': '保存',
        'save_success': '保存成功',
        'save_fail': '保存失败',
        # 设置页面
        'api_settings': 'API设置',
        'api_base': 'API基础URL',
        'api_base_placeholder': '请输入API基础URL',
        'api_key': 'API密钥',
        'api_key_placeholder': '请输入API密钥',
        'model_name': '模型名称',
        'model_name_placeholder': '请输入模型名称',
        'test_connection': '测试连接',
        'interface_settings': '界面设置',
        'theme_light': '浅色',
        'theme_dark': '深色',
        'fetch_settings_fail': '获取设置失败',
        'test_success': '连接成功',
        'test_fail': '连接失败',
        'generate_qa_count': '生成QA对数量',
        'generate_by_llm': '大模型生成',
        'model_generate': '模型生成',
        'operation': '操作',
        'select_file': '请选择文件',
        'no_qa_pairs': '暂无问答对',
        'delete_qa_confirm': '确定要删除该问答对吗？',
        'edit': '修改',
        'generate_qa_success_title': '生成成功',
        'generate_qa_success_msg': '问答生成并写入成功，共{count}条',
        'generate_qa_fail_title': '生成失败',
        'generate_qa_fail_msg': '问答生成失败',
        'testing': '正在连接...',
        # 新增评分模型和问答模型相关key
        'score_model_settings': '评分模型设置',
        'score_api_url': '评分API地址',
        'score_api_url_placeholder': '请输入评分API地址',
        'score_api_key': '评分API密钥',
        'score_api_key_placeholder': '请输入评分API密钥',
        'score_model_name': '评分模型名称',
        'score_model_name_placeholder': '请输入评分模型名称',
        'qa_model_settings': '问答模型设置',
        'lang_zh': '简体中文',
        'lang_en': '英文',
    },
    'en': {
        'menu_file': 'File',
        'menu_chunk': 'Chunk',
        'menu_dataset': 'Export',
        'menu_settings': 'Settings',
        'file_manage': 'File Management',
        'upload': 'Upload',
        'filename': 'Filename',
        'status': 'Status',
        'upload_time': 'Upload Time',
        'action': 'Action',
        'split': 'Split',
        'view': 'View',
        'delete': 'Delete',
        'no_data': 'No Data',
        'status_pending': 'Pending',
        'status_chunked': 'Chunked',
        'status_done': 'Done',
        'delete_confirm': 'Are you sure to delete this file?',
        'delete_success': 'Delete Success',
        'delete_fail': 'Delete Failed',
        'delete_chunk_confirm': 'Are you sure to delete this chunk?',
        'delete_chunk_success': 'Chunk deleted successfully',
        'delete_chunk_fail': 'Chunk deletion failed',
        'confirm': 'Confirm',
        'cancel': 'Cancel',
        'alert_title': 'Alert',
        'upload_success': 'Upload Success',
        'upload_fail': 'Upload Failed',
        # Split dialog related
        'split_strategy_title': 'Split Strategy',
        'split_method': 'Split Method:',
        'split_method_auto': 'Auto Recursive (Recommended)',
        'split_method_heading': 'By Heading',
        'split_method_paragraph': 'By Paragraph',
        'split_method_table': 'By Table Cell',
        'block_size': 'Max block size (100-5000):',
        'overlap': 'Overlap(%):',
        'start_split': 'Start Split',
        'splitting': 'Splitting...',
        'progress': 'Progress:',
        'split_done': 'Split Done!',
        'split_fail': 'Split Failed',
        # Chunk management related
        'chunk_manage': 'Chunk Management',
        'chunk_content': 'Chunk Content',
        'qa_count': 'QA Pairs',
        'loading': 'Loading...',
        'batch_delete': 'Batch Delete',
        'delete_selected': 'Delete Selected',
        'delete_selected_confirm': 'Are you sure to delete selected chunks?',
        'delete_selected_success': 'Delete Success',
        'delete_selected_fail': 'Delete Failed',
        
        # Dataset export related
        'dataset_manage': 'Dataset Export',
        'batch_export': 'Batch Export',
        'file_name': 'File Name',
        'qa_pairs': 'QA Pairs',
        'create_time': 'Create Time',
        'export_params': 'Export Parameters',
        'export_format': 'Export Format',
        'export_type': 'Export Type',
        'export_confirm': 'Confirm Export',
        'export_cancel': 'Cancel',
        'export_success': 'Export Success',
        'export_fail': 'Export Failed',
        'export_score': 'Export Score',
        'all': 'All',
        
        # Settings related
        'settings_manage': 'System Settings',
        'language': 'Language',
        'theme': 'Theme',
        'save': 'Save',
        'save_success': 'Save Success',
        'save_fail': 'Save Failed',
        # 设置页面
        'api_settings': 'API Settings',
        'api_base': 'API Base URL',
        'api_base_placeholder': 'Please enter API Base URL',
        'api_key': 'API Key',
        'api_key_placeholder': 'Please enter API Key',
        'model_name': 'Model Name',
        'model_name_placeholder': 'Please enter Model Name',
        'test_connection': 'Test Connection',
        'interface_settings': 'Interface Settings',
        'theme_light': 'Light',
        'theme_dark': 'Dark',
        'fetch_settings_fail': 'Failed to fetch settings',
        'test_success': 'Test Success',
        'test_fail': 'Test Failed',
        'generate_qa_count': 'QA Pairs to Generate',
        'generate_by_llm': 'Generate by LLM',
        'model_generate': 'Model Generate',
        'operation': 'Operation',
        'select_file': 'Select File',
        'no_qa_pairs': 'No QA Pairs',
        'delete_qa_confirm': 'Are you sure to delete this QA pair?',
        'edit': 'Edit',
        'generate_qa_success_title': 'Generation Success',
        'generate_qa_success_msg': 'QA pairs generated and saved successfully, total {count}.',
        'generate_qa_fail_title': 'Generation Failed',
        'generate_qa_fail_msg': 'QA generation failed',
        'testing': 'Testing connection...',
        # 新增评分模型和问答模型相关key
        'score_model_settings': 'Score Model Settings',
        'score_api_url': 'Score API URL',
        'score_api_url_placeholder': 'Please enter score API URL',
        'score_api_key': 'Score API Key',
        'score_api_key_placeholder': 'Please enter score API Key',
        'score_model_name': 'Score Model Name',
        'score_model_name_placeholder': 'Please enter score model name',
        'qa_model_settings': 'QA Model Settings',
        'lang_zh': 'Chinese',
        'lang_en': 'English',
    }
} 